@REM 执行打包命令
SET exe_name=pyside_template
call pyinstaller -D --noconfirm main.py -n %exe_name% -w -i logo.ico --optimize 1
@REM 复制ui
xcopy ui\*.ui dist\%exe_name%\ui\ /y /h
@REM 复制主题
xcopy *.qss dist\%exe_name%\ /y /h
xcopy theme\ dist\%exe_name%\theme\ /y /h /e
@REM 复制图标
xcopy icon\*.* dist\%exe_name%\icon\ /y /h
xcopy logo.png dist\%exe_name%\ /y /h
@REM 删除build目录
rmdir build /s /q
@REM @REM 打包程序
call package.bat